﻿using System;
using Linq2Crm.ObjectModel.Attributes;
using SilverCrmSoap.CrmSdk;

namespace Linq2Crm.ObjectModel.DomainObject
{	
	public class View:IDomainObject
	{
		[CrmFieldMapping("fetchxml")]
		public string FetchXml { get; set; }

		[CrmFieldMapping("layoutxml")]
		public string LayoutXml { get; set; }

		[CrmFieldMapping("description")]
		public string Description { get; set; }

		[CrmFieldMapping("querytype")]
		public int QueryType { get; set; }

		[CrmFieldMapping("returnedtypecode")]
		public string ReturnedTypeCode { get; set; }

		public Entity OriginalEntity { get; set; }

		#region Implementation of IDomainObject
		public Guid Id { get; set; }
		public string Name { get; set; }
		public RecordStateCode StateCode { get; set; }
		public int StatusCode { get; set; }
		public int? OrigStatusCode { get; set; }
		public void ConvertingFromEntity()
		{
		}

		public void ConvertedFromEntity()
		{
		}

		public void ConvertingToEntity()
		{
		}

		public void ConvertedToEntity()
		{
		}

		#endregion
	}
}